package com.compus.constant;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum OrderStatus {

    WAIT(0, "未上车"),
    FINISH(1, "已完成"),
    CANCEL(2, "取消");

    @EnumValue
    private final Integer code;

    @JsonValue
    private final String desc;

}
